package indoor.nexd.com.nexdmap.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by wangxu on 16/3/1.
 */
public class MallModel implements Parcelable {


    /**
     * md5 : D427FBBDB032FFB290C171D12DBB5FE8
     * url : http://192.168.199.248:8080/v1.0/downloadProp.do?fileName=10100123_20151229165041484.zip&appKey=f4b5aeaa1776f7af714e0663fa2e50b2
     * mallEName : YouTangGuangChang
     * mallId : 10100123
     * mallCName : 悠唐广场
     * baiduLat : 39.928137
     * baiduLng : 116.444682
     */

    private String md5;
    private String url;
    private String mallEName;
    private String mallId;
    private String mallCName;
    private String baiduLat;
    private String baiduLng;


    public MallModel() {
    }

    protected MallModel(Parcel in) {
        md5 = in.readString();
        url = in.readString();
        mallEName = in.readString();
        mallId = in.readString();
        mallCName = in.readString();
        baiduLat = in.readString();
        baiduLng = in.readString();
    }

    public static final Creator<MallModel> CREATOR = new Creator<MallModel>() {
        @Override
        public MallModel createFromParcel(Parcel in) {
            return new MallModel(in);
        }

        @Override
        public MallModel[] newArray(int size) {
            return new MallModel[size];
        }
    };


    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setMallEName(String mallEName) {
        this.mallEName = mallEName;
    }

    public void setMallId(String mallId) {
        this.mallId = mallId;
    }

    public void setMallCName(String mallCName) {
        this.mallCName = mallCName;
    }

    public void setBaiduLat(String baiduLat) {
        this.baiduLat = baiduLat;
    }

    public void setBaiduLng(String baiduLng) {
        this.baiduLng = baiduLng;
    }

    public String getMd5() {
        return md5;
    }

    public String getUrl() {
        return url;
    }

    public String getMallEName() {
        return mallEName;
    }

    public String getMallId() {
        return mallId;
    }

    public String getMallCName() {
        return mallCName;
    }

    public String getBaiduLat() {
        return baiduLat;
    }

    public String getBaiduLng() {
        return baiduLng;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(md5);
        dest.writeString(url);
        dest.writeString(mallEName);
        dest.writeString(mallId);
        dest.writeString(mallCName);
        dest.writeString(baiduLat);
        dest.writeString(baiduLng);
    }

    @Override
    public String toString() {
        return "MallModel{" +
                "md5='" + md5 + '\'' +
                ", url='" + url + '\'' +
                ", mallEName='" + mallEName + '\'' +
                ", mallId='" + mallId + '\'' +
                ", mallCName='" + mallCName + '\'' +
                ", baiduLat='" + baiduLat + '\'' +
                ", baiduLng='" + baiduLng + '\'' +
                '}';
    }
}
